﻿using System;

/// <summary>
/// 通用增加数据接口
/// </summary>
namespace PageAdmin.Utils.BLL
{
    /// <summary>
    /// 添加添加接口
    /// </summary>
    public interface IAdd<T> where T :class, new()
    {
        /// <summary>
        /// 执行前的委托
        /// </summary>
        Func<T,TipsInfo> Executing { get; set; }

        /// <summary>
        /// 执行后的委托
        /// </summary>
        Func<T,TipsInfo> Executed { get; set; }
        /// <summary>
        /// 添加方法
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="tModel"></param>
        /// <returns></returns>
        TipsInfo Add(T tModel);
    }

}